﻿@model SMECustomerWebsite.Models.ViewModels.Account.LoginViewModel

@{
    ViewBag.Title = "Log in";
}

<div class="right_col sme_body login_body" role="main">
    <section class="content-wrapper main-content clear-fix">
        <div id="wrapper">
            <div id="login" class=" form">
                <section class="login_content">
                    <img class="logovpb-login" src="~/Images/LOGO/logo-ngang.png" alt="">
                    @using (Html.BeginForm("Login", "Account", FormMethod.Post))
                    {
                        <h1>@SMECustomerWebsite.Core.Resources.Resource.LoginForm</h1>
                        @Html.AntiForgeryToken()
                        @Html.ValidationSummary(true)
                        if (@Model.MessageType != null && Model.MessageType == Common.Type.MessageType.Error)
                        {
                            <div class="alert alert-danger alert-dismissible fade in" role="alert">
                                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                    <span aria-hidden="true">×</span>
                                </button>
                                @Model.Message
                            </div>
                        }
                        else if (Model.MessageType != null && Model.MessageType == Common.Type.MessageType.Success && !string.IsNullOrEmpty(Model.Message))
                        {
                            <div class="alert alert-success alert-dismissible fade in" role="alert">
                                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                    <span aria-hidden="true">×</span>
                                </button>
                                @Model.Message
                            </div>
                        }
                        <div>
                            @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", placeholder = "Username" })
                        </div>
                        <div>
                            @Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = "Password" })
                        </div>
                        <div>
                            <input type="submit" class="btn btn-default submit" value="@SMECustomerWebsite.Core.Resources.Resource.LoginBtn" />
                            <a class="reset_pass" href="/DaoManager/DaoRegistrationRequestByGuest">New member?</a>
                        </div>
                        <div class="clearfix"></div>
                        <div class="separator">
                            <div class="clearfix"></div>
                            <br />
                            <div class="col-lg-12">
                                <img class=" col-lg-4 col-md-8 col-sm-12 logobic-sidebar" src="~/Images/LOGO/BICC_New Logo_Transparent Background.png" alt="">
                                <img class="col-lg-8 col-md-8 col-sm-12" src="~/Images/LOGO/logo-VPBank-SME-ok-2.png" alt="">
                            </div>
                            <h1>
                                <br /> SMEs Customer 360 Degree
                            </h1>
                            <p>©2016 All Rights Reserved. Privacy and Terms</p>
                        </div>
                    }
                </section>
            </div>
        </div>
    </section>
</div>